package com.chixigua.chaos.controller;


import com.alibaba.fastjson.JSONObject;
import com.chixigua.chaos.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shane
 * @since 2020-04-03
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;
    @GetMapping("/getUserList")
    public JSONObject getUserList(String search){
        return userService.getUserList(search);
    }
}
